package com.itqf.service.impl;

import com.itqf.dao.UserDao;
import com.itqf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/2 14:41
 * description:
 */
@Service
public class UserServiceImpl  implements UserService {

    @Autowired
    private UserDao userDao;

    /**
     * 登录业务接口
     *
     * @param username
     * @param password
     * @return
     */
    @Override
    public boolean login(String username, String password) {

        System.out.println("UserServiceImpl.login");

        boolean is = userDao.query(username, password);

        return is;
    }
}
